package com.notify;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.notify.Tools;

public class MainActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		String status = new Tools().Autologin(getApplicationContext());

		status = status.replaceAll("\\s+", "");

		if (status.equals("ok")) {
			Intent in = new Intent(getApplicationContext(),
					NotifierActivity.class);
			finish();
			startActivity(in);

		} else {

			Intent in = new Intent(getApplicationContext(), LoginActivity.class);
			finish();
			startActivity(in);

		}
	}

}